# -*- coding: UTF-8 -*-
"""
@Filename:exerc2.py
@author:Cora
@time:2025-04-11
"""
s = input("请输入一个字符串：")
count_dict = {}
for char in s:
    if char.isalnum():
        count_dict[char] = count_dict.get(char, 0) + 1
print(count_dict)